<template>
  <div class="editor-notice-con" style="max-height:150px">
               <div class="notice-con-title">标题&nbsp
                  <Input @on-change="inputChanges(data.title,data.selfindex)" v-model="data.title" placeholder="最多20个字"  style="width: 250px" />
              </div>
     
  </div>
</template>

<script>

export default {
  props:{
    data:{
      type:Object,
      default:()=>{
        return{
          
        }
      }
    }
  },
  name: 'ad',
  data () {
    return {
      value:"",
      animal:"1",
      lianji:"1",
      anima2:"1",
      msg: '广告  暂时分为轮播和单张展示两种'

    }
  },
  methods:{
    addad(d){
      this.control(d)
    },
    inputChanges(e,index){

   var data = {title:e,index:index}
      this.$emit('on-change',data)
    },
    selectChanges(e){
         var data = {link:e}
        this.$emit('on-change',data)
    },
    control(d){
      var  url ="http://tu.duia.com/yypic/166056072297036148.png"
        var data = {url:url,index:d}
        this.$emit('on-change',data)
    },
    rchange(e){
        if(e==1){
          this.anima2="1"
        }
    }
  },
    components:{
       
    }
}
</script>
